Optimal. Leaf size=186 \[ -\frac {i a \sqrt {1-x^2} \text {Li}_2\left (-\frac {i \sqrt {1-x}}{\sqrt {x+1}}\right )}{2 \sqrt {a-a x^2}}+\frac {i a \sqrt {1-x^2} \text {Li}_2\left (\frac {i \sqrt {1-x}}{\sqrt {x+1}}\right )}{2 \sqrt {a-a x^2}}+\frac {1}{2} \sqrt {a-a x^2}+\frac {1}{2} x \sqrt {a-a x^2} \tanh ^{-1}(x)-\frac {a \sqrt {1-x^2} \tan ^{-1}\left (\frac {\sqrt {1-x}}{\sqrt {x+1}}\right ) \tanh ^{-1}(x)}{\sqrt {a-a x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 186, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {5942, 5954, 5950} \[ -\frac {i a \sqrt {1-x^2} \text {PolyLog}\left (2,-\frac {i \sqrt {1-x}}{\sqrt {x+1}}\right )}{2 \sqrt {a-a x^2}}+\frac {i a \sqrt {1-x^2} \text {PolyLog}\left (2,\frac {i \sqrt {1-x}}{\sqrt {x+1}}\right )}{2 \sqrt {a-a x^2}}+\frac {1}{2} \sqrt {a-a x^2}+\frac {1}{2} x \sqrt {a-a x^2} \tanh ^{-1}(x)-\frac {a \sqrt {1-x^2} \tan ^{-1}\left (\frac {\sqrt {1-x}}{\sqrt {x+1}}\right ) \tanh ^{-1}(x)}{\sqrt {a-a x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5942
Rule 5950
Rule 5954
Rubi steps
\begin {align*} \int \sqrt {a-a x^2} \tanh ^{-1}(x) \, dx &=\frac {1}{2} \sqrt {a-a x^2}+\frac {1}{2} x \sqrt {a-a x^2} \tanh ^{-1}(x)+\frac {1}{2} a \int \frac {\tanh ^{-1}(x)}{\sqrt {a-a x^2}} \, dx\\ &=\frac {1}{2} \sqrt {a-a x^2}+\frac {1}{2} x \sqrt {a-a x^2} \tanh ^{-1}(x)+\frac {\left (a \sqrt {1-x^2}\right ) \int \frac {\tanh ^{-1}(x)}{\sqrt {1-x^2}} \, dx}{2 \sqrt {a-a x^2}}\\ &=\frac {1}{2} \sqrt {a-a x^2}+\frac {1}{2} x \sqrt {a-a x^2} \tanh ^{-1}(x)-\frac {a \sqrt {1-x^2} \tan ^{-1}\left (\frac {\sqrt {1-x}}{\sqrt {1+x}}\right ) \tanh ^{-1}(x)}{\sqrt {a-a x^2}}-\frac {i a \sqrt {1-x^2} \text {Li}_2\left (-\frac {i \sqrt {1-x}}{\sqrt {1+x}}\right )}{2 \sqrt {a-a x^2}}+\frac {i a \sqrt {1-x^2} \text {Li}_2\left (\frac {i \sqrt {1-x}}{\sqrt {1+x}}\right )}{2 \sqrt {a-a x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.32, size = 97, normalized size = 0.52 \[ \frac {1}{2} \sqrt {a \left (1-x^2\right )} \left (-\frac {i \left (\text {Li}_2\left (-i e^{-\tanh ^{-1}(x)}\right )-\text {Li}_2\left (i e^{-\tanh ^{-1}(x)}\right )+\tanh ^{-1}(x) \left (\log \left (1-i e^{-\tanh ^{-1}(x)}\right )-\log \left (1+i e^{-\tanh ^{-1}(x)}\right )\right )\right )}{\sqrt {1-x^2}}+x \tanh ^{-1}(x)+1\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.49, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\sqrt {-a x^{2} + a} \operatorname {artanh}\relax (x), x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {-a x^{2} + a} \operatorname {artanh}\relax (x)\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.61, size = 229, normalized size = 1.23 \[ \frac {\left (\arctanh \relax (x ) x +1\right ) \sqrt {-\left (-1+x \right ) \left (1+x \right ) a}}{2}+\frac {i \sqrt {-\left (-1+x \right ) \left (1+x \right ) a}\, \sqrt {-x^{2}+1}\, \arctanh \relax (x ) \ln \left (1+\frac {i \left (1+x \right )}{\sqrt {-x^{2}+1}}\right )}{2 \left (1+x \right ) \left (-1+x \right )}-\frac {i \sqrt {-\left (-1+x \right ) \left (1+x \right ) a}\, \sqrt {-x^{2}+1}\, \arctanh \relax (x ) \ln \left (1-\frac {i \left (1+x \right )}{\sqrt {-x^{2}+1}}\right )}{2 \left (1+x \right ) \left (-1+x \right )}+\frac {i \sqrt {-\left (-1+x \right ) \left (1+x \right ) a}\, \sqrt {-x^{2}+1}\, \dilog \left (1+\frac {i \left (1+x \right )}{\sqrt {-x^{2}+1}}\right )}{2 \left (1+x \right ) \left (-1+x \right )}-\frac {i \sqrt {-\left (-1+x \right ) \left (1+x \right ) a}\, \sqrt {-x^{2}+1}\, \dilog \left (1-\frac {i \left (1+x \right )}{\sqrt {-x^{2}+1}}\right )}{2 \left (1+x \right ) \left (-1+x \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {-a x^{2} + a} \operatorname {artanh}\relax (x)\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \mathrm {atanh}\relax (x)\,\sqrt {a-a\,x^2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {- a \left (x - 1\right ) \left (x + 1\right )} \operatorname {atanh}{\relax (x )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________